$(document).ready(function(){
					var $ad_shouji_div = '<div class="ft-bg posscroll" id="posscroll"><div class="ft"><div class="ft-logo"></div><div class="store-download"><a href="http://source.happycp.com/android/happycp.apk" class="btn android" title="安卓版下载">安卓版下载</a><a href="https://itunes.apple.com/cn/app/id773025700" target="_blank" class="btn ios" title="苹果版下载">苹果版下载</a></div><div class="ft-twocode"></div></div></div>',
					$ad_shouji_Ele = $(
							'<div class="ad_shouji_cont"></div>').appendTo(
					$("body")).html($ad_shouji_div).click(function() {
						$("html, body").animate({
							//scrollTop : 0
						}, 120);
					}), $ad_shouji_Fun = function() {
						var st = $(document).scrollTop(), winh = $(window)
								.height();
						(st > 0) ? $ad_shouji_Ele.show() : $ad_shouji_Ele
								.hide();
						if ($(window).scrollTop() + $(window).height() >= $(document).height() - 15) {
							$(".ft-bg").removeClass("posscroll");
							$("#p_had_shouji").css("height", "100px");
						} else {
							$(".ft-bg").addClass("posscroll");
						}
						// IE6下的定位
						if (!window.XMLHttpRequest) {
							$ad_shouji_Ele.css("top", st + winh - 166);
						}
					};
					$(window).bind("scroll", $ad_shouji_Fun);
					$(function() {
						$ad_shouji_Fun();
					});
					$(".ft-logo").delay(200).animate({'opacity':1},300).addClass('wobble');
});